<?php

    $ci = array(
        'name' => 'ci_participante_g',
       
        'class' => 'form-control',
        'autofocus' => '',
        );
    $nombres = array(
        'name' => 'nombres_participante',
        
        'class' => 'form-control',
         'maxlength'   => '50',
         'size'        => '50'
        );
    $apellidop = array(
        'name' => 'apellidop_participante',
        
        'class' => 'form-control',
         'maxlength'   => '50',
         'size'        => '50'
        );
    $apellidom = array(
        'name' => 'apellidom_participante',
        
        'class' => 'form-control',
         'maxlength'   => '50',
         'size'        => '50'
        );
       
    $submit1 = array(
        'name' => 'submitNuevo',
        'value' => 'nuevo',
        'class' => 'btn btn-lg btn-danger btn-block'
        );
    
     $submit2 = array(
        'name' => 'submitFiltrar',
        'value' => 'filtrar',
        'class' => 'btn btn-lg btn-danger btn-block'
        );
    
      $submit3 = array(
        'name' => 'submitImprimir',
        'value' => 'imprimir',
        'class' => 'btn btn-lg btn-danger btn-block'
        );
    
?>
<div class="container">
    <div class="rows">
        <div style="text-align: left; width:100%; height:180px; margin-top:8px;"> 
        <?=form_open('participante/gestionar')?>
            <h2 class="form-signin-heading">Gestionar Participante</h2>
<fieldset>
<legend>Consulta de Datos :</legend>
            
             <div style="float:left; width:300px; height:80px; margin-top:8px;"> 
        <div class="formfield">
            <label for="ci">Cedula de Identidad:</label><br/>
            <?=form_input($ci) ?>
            <?=form_error('Ci')?>

        </div>
        </div>
        
        <div style="float:left; width:300px; height:80px; margin-top:8px;"> 
        <div class="formfield">
            <label for="nom">Nombres:</label><br/>
            <?=form_input($nombres)?>
            <?=form_error('Nombres')?>

        </div>   
        </div>
        
        <div style="float:left; width:300px; height:80px; margin-top:8px;"> 
        <div class="formfield">
            <label for="appp">Apellido Paterno:</label><br/>
            <?=form_input($apellidop)?>
            <?=form_error('Apellidop')?>

        </div> 
        </div>   
         
        <div style="float:left; width:300px; height:80px; margin-top:8px;"> 
        <div class="formfield">
            <label for="appm">Apellido Materno:</label><br/>
            <?=form_input($apellidom)?>
            <?=form_error('Apellidom')?>

        </div> 
        </div>
       
                 
        <div style="float:left; width:300px; height:50px; margin-top:20px;"> 
             <div class="formfield">
             <label for="dd">Departamento:</label>
             <select name="dpto" id="dpto">
                <option value="">Seleccionar</option>
                 <option value="Beni">Beni</option>
                 <option value="Chuquisaca">Chuquisaca</option>
                <option value="Cochabamba">Cochabamba</option>
               <option value="LaPaz">La Paz</option>
                <option value="Oruro">Oruro</option>
               <option value="Pando">Pando</option>
                <option value="Potosi">Potosi</option>
               <option value="SantaCruz">Santa Cruz</option>
               <option value="Tarija">Tarija</option>
               
             </select>
             
             </div>
             </div>    
             <div style="float:left; width:300px; height:50px; margin-top:20px;"> 
             <div class="formfield">
             <label for="sex">Sexo:</label>
             <select name="sexo" id="sexo">
                <option value="">Seleccionar</option>
                <option value="f">Femenino</option>
                <option value="m">Masculino</option>
               
             </select>
             
             </div>
             </div>
             <fieldset>
            <legend>Filtrar Usuarios:</legend>
            <input type="radio" name="user" id="user" value="true" checked />Habilitados<br />
            <input type="radio" name="user" id="user" value="false" />DesHabilitados<br />
            <input type="radio" name="user" id="user" value="ok" />Todos

             </fieldset>

             
            <br><br>     
          

</fieldset>
 <fieldset>
            <legend>Funciones:</legend>
             <div style="float:left; width:90px; height:40px;margin-top:4px;"> 
             <div class="formfield">
                <?=form_submit($submit1)?>
             </div>
             </div>
             
             <div style="float:left; width:90px; height:40px; margin-top:4px;"> 
             <div class="formfield">
                <?=form_submit($submit2)?>
             </div>
             </div>
             <div style="float:left; width:90px; height:40px; margin-top:4px;"> 
             <div class="formfield">
                <?=form_submit($submit3)?>
             </div>
             </div>
             </fieldset>
            
<fieldset>
<legend> Datos </legend>
<table width="100%" class="data">
  <tr>
    <th>Ci</th>
    <th>Nombres</th>
    <th>Apellido Paterno</th>
    <th>Apellido Materno</th>
    <th>Sexo</th>
    <th>Fecha Nacimiento</th>
    <th>Profesion</th>
    <th>Telefono 1</th>
    <th>Telefono 2</th>
    <th>Direccion</th>
    <th>Email Personal</th>
    <th>Email Institucional</th>
    <th>Cantidad de Horas Participacion</th>
    <th>Editar</th>
    <th>Eliminar</th>
  </tr>
  
<?php 

foreach($datos as $participante){ ?>
    <tr>
        <td><?php echo $participante->Ci; ?></td>
        <td><?php echo $participante->Nombres; ?></td>
        <td><?php echo $participante->ApellidoPaterno; ?></td>
        <td><?php echo $participante->ApellidoMaterno; ?></td>
        <td><?php echo $participante->Sexo; ?></td>
        <td><?php echo $participante->FechaNacimiento; ?></td>
        <td><?php echo $participante->Profesion; ?></td>
        <td><?php echo $participante->Telefono1; ?></td>
        <td><?php echo $participante->Telefono2; ?></td>
        <td><?php echo $participante->Direccion; ?></td>
        <td><?php echo $participante->EmailPersonal; ?></td>
        <td><?php echo $participante->EmailInstitucional; ?></td>
        <td><?php echo $participante->CantHorasParticipacion; ?></td>
       
        <td style="text-align: center;"><a href="<?= base_url()."participante/editar/".$participante->Ci ?>"><img src="<?= base_url().'assets/img/icon_edit.png' ?>" border="0" /></a></td>
        <td style="text-align: center;"><a href="<?= base_url()."participante/eliminar/".$participante->Ci ?>"><img src="<?= base_url().'assets/img/icon_delete.png' ?>" border="0" /></a></td>    </tr>
<?php } ?>
</table>
</fieldset>

            <?=form_close()?>
      </form>
        </div>
    </div>


